<template>
    <ul>
        <li v-for='item in news' :key="item.id"><img :src="require('../assets'+item.imgUrl)">{{item.title}}</li>
    </ul>
</template>
<script>
export default {
    data(){
        return{
            news:[],
        }
    },
    created:async function(){
    let {data}=await this.$http.get("/api/data")
    this.news = data
    }
}
</script>